#pragma once

#include <QWidget>
#include "ui_camera.h"

class Camera : public QWidget
{
	Q_OBJECT

public:
	Camera(QWidget *parent = Q_NULLPTR, QString sn = QString(), QString ip = QString(), QString mac = QString());
	~Camera();
	void deactive(void);
	void get_cam_info(QString* sn, QString* ip, QString* mac);

private:
	Ui::Camera ui;
	QString cam_sn;

signals:
	void btn_activate_clicked(bool activate, QString sn);
private slots:
	void on_btn_activate_clicked();
	void mqtt_disconnect();
};
